﻿using System;
using System.Collections.Generic;

namespace SSP.Api.Options
{
    ///<summary>
    ///</summary>
    public class AlbumGalleriesOptions
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AlbumGalleriesOptions"/> class.
        /// </summary>
        public AlbumGalleriesOptions()
        {
            exclude = new List<string> {"0"};
        }

        /// <summary>
        /// An id (or an array of ids) related to any gallery or galleries you wish to exclude from the results. 
        /// </summary>
        /// <value>The exclude.</value>
        public List<string> exclude { get; set; }

        /// <summary>
        /// formats the excluded galleries for the query string.
        /// </summary>
        /// <returns></returns>
        public string ToQueryString()
        {
            if (exclude.Count == 1)
                return "0";
            return String.Join(",", exclude.ToArray());
        }
    }
}